package com.ruoyi.crop.api.model;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.crop.api.factory.RemoteDriverFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteUDriveService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDriverFallbackFactory.class)
public interface RemoteUDriveService
{
    @PostMapping("/users/getDriverById")
    public String getDriverById(@RequestParam(value = "driverId",required = false) Long driverId);
}
